package com.rongc.client.freight.business.supply.view.adapter;

import android.content.Context;
import android.view.View;

import com.rongc.client.freight.R;
import com.rongc.client.freight.base.view.adapter.RecyclerBaseAdapter;
import com.rongc.client.freight.business.supply.model.CommentBean;

import java.util.List;

/**
 * Created by ccqx on 2017/7/15.
 */

public class RecyclerSupplyCommentAdapter extends RecyclerBaseAdapter<CommentBean>{


    public RecyclerSupplyCommentAdapter(Context mContext, List<CommentBean> mDatas) {
        super(mContext, mDatas);
    }

    @Override
    protected void onBind(final BaseRecyclerViewHolder holder, int position, CommentBean data) {
        holder.getImageView(R.id.iv_head).setVisibility(View.VISIBLE);
        holder.setText(R.id.tv_name,data.getNick());
        holder.setText(R.id.tv_date,data.getCreatetime());
        holder.setText(R.id.tv_content,data.getContents());

    }

    @Override
    protected int getLayoutId() {
        return R.layout.recycler_comment_item;
    }
}
